/**
 * Created by LiYang on 16-9-27 下午2:07.
 *
 */

package com.example.db.common;


import com.example.db.DBSerializable;
import com.example.db.annotation.ColumnMeta;

public abstract class EntitySerializable implements DBSerializable {
    // 主键
    @ColumnMeta(type = ColumnMeta.Type.INTEGER,
            isNull = false,
            increment = true,
            primary = true)
    private long id;

    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }
}
